//
//  AppDelegate.h
//  Trading365
//
//  Created by yifei tong on 11-12-14.
//  Copyright (c) 2011年 dhc. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/mapkit.h>
#import "DSLoadingViewController.h"
@class NavigationMainViewController;
@class RootMissionToDo;
@class RootMore;

@interface AppDelegate : NSObject <UIApplicationDelegate, UITabBarControllerDelegate,CLLocationManagerDelegate,NSStreamDelegate,UITextFieldDelegate>
{
    NavigationMainViewController * _mainViewCtl;
    RootMissionToDo *              _missionTodoViewCtl;
    RootMore *                     _moreViewCtl;
    NSString *                     ver_server;
    NSTimer *                      m_timer;                //定时器
    CLLocationManager *            locmanager;
    BOOL                           m_bConnect;             //保存连接网络的状态
    DSLoadingViewController *      _loadingViewController;
}

@property (retain, nonatomic) IBOutlet UIWindow *           window;
@property (retain, nonatomic) IBOutlet UITabBarController * viewController;
@property (nonatomic, retain) DSLoadingViewController *     loadingViewController;
@property (retain, nonatomic) NSString *                    ver_server;
@property  BOOL                                             m_bConnect; 

-(void) setMainViewCtl:(NavigationMainViewController*) mainViewCtl;
-(NavigationMainViewController*) getMainViewCtl;

-(void) setMissionTodoViewCtl:(RootMissionToDo*) missionTodoViewCtl;
-(RootMissionToDo*) getMissionTodoViewCtl;
- (void)loadLoadingView;
- (void)loadMainView;
-(void) setMoreViewCtl:(RootMore*) moreViewCtl;
-(RootMore*) getMoreViewCtl;


- (NSString *)getCurrentTime;
- (void) SetTimer;
- (void) KillTimer;
- (void) OnTimer;
@end
